package com.suyang.syt.dao.impl;

import org.springframework.stereotype.Repository;

import com.suyang.syt.dao.interfaces.UserVisitorDao;
import com.suyang.syt.model.UserVisitor;

@Repository
public class UserVisitorDaoImpl extends BaseDaoImpl<UserVisitor> implements UserVisitorDao {

	@Override
	public void deleteByIds(String ids) {
		this.executeByHql("delete UserVisitor where id in(" + ids + ")");
	}

	@Override
	public long getUidById_Status(long id, int status) {
		return (Long) this.queryByHql("select uid from UserVisitor where id=? and status=? ",new Object[] { id, status });
	}

}
